From 270d45a3e5b3e5ea8222745aa8c6fd47413381ef Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Tue, 28 Nov 2000 16:39:55 +0000 Subject: [PATCH] The cursor should be hidden if it is part of either the source or 2000-11-28 Alexander Larsson * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize): The cursor should be hidden if it is part of either the source or destination region. Not only if it is in both. (gdk_window_set_transient_for): Silence warnings. --- ChangeLog | 7 +++++++ ChangeLog.pre-2-0 | 7 +++++++ ChangeLog.pre-2-10 | 7 +++++++ ChangeLog.pre-2-2 | 7 +++++++ ChangeLog.pre-2-4 | 7 +++++++ ChangeLog.pre-2-6 | 7 +++++++ ChangeLog.pre-2-8 | 7 +++++++ gdk/linux-fb/gdkwindow-fb.c | 7 ++++--- 8 files changed, 53 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 9c7b93e2f3..f15f0f2892 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2000-11-28 Alexander Larsson + + * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize): + The cursor should be hidden if it is part of either the + source or destination region. Not only if it is in both. + (gdk_window_set_transient_for): Silence warnings. + 2000-11-28 Alexander Larsson * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup): diff --git a/ChangeLog.pre-2-0 b/ChangeLog.pre-2-0 index 9c7b93e2f3..f15f0f2892 100644 --- a/ChangeLog.pre-2-0 +++ b/ChangeLog.pre-2-0 @@ -1,3 +1,10 @@ +2000-11-28 Alexander Larsson + + * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize): + The cursor should be hidden if it is part of either the + source or destination region. Not only if it is in both. + (gdk_window_set_transient_for): Silence warnings. + 2000-11-28 Alexander Larsson * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup): diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 9c7b93e2f3..f15f0f2892 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,10 @@ +2000-11-28 Alexander Larsson + + * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize): + The cursor should be hidden if it is part of either the + source or destination region. Not only if it is in both. + (gdk_window_set_transient_for): Silence warnings. + 2000-11-28 Alexander Larsson * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup): diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 9c7b93e2f3..f15f0f2892 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,10 @@ +2000-11-28 Alexander Larsson + + * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize): + The cursor should be hidden if it is part of either the + source or destination region. Not only if it is in both. + (gdk_window_set_transient_for): Silence warnings. + 2000-11-28 Alexander Larsson * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup): diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 9c7b93e2f3..f15f0f2892 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,10 @@ +2000-11-28 Alexander Larsson + + * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize): + The cursor should be hidden if it is part of either the + source or destination region. Not only if it is in both. + (gdk_window_set_transient_for): Silence warnings. + 2000-11-28 Alexander Larsson * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup): diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 9c7b93e2f3..f15f0f2892 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,10 @@ +2000-11-28 Alexander Larsson + + * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize): + The cursor should be hidden if it is part of either the + source or destination region. Not only if it is in both. + (gdk_window_set_transient_for): Silence warnings. + 2000-11-28 Alexander Larsson * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup): diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 9c7b93e2f3..f15f0f2892 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,10 @@ +2000-11-28 Alexander Larsson + + * gdk/linux-fb/gdkwindow-fb.c (gdk_fb_window_move_resize): + The cursor should be hidden if it is part of either the + source or destination region. Not only if it is in both. + (gdk_window_set_transient_for): Silence warnings. + 2000-11-28 Alexander Larsson * gdk/linux-fb/mifillarc.c (miFillArcSliceSetup): diff --git a/gdk/linux-fb/gdkwindow-fb.c b/gdk/linux-fb/gdkwindow-fb.c index 30e822566c..05a902f1dd 100644 --- a/gdk/linux-fb/gdkwindow-fb.c +++ b/gdk/linux-fb/gdkwindow-fb.c @@ -869,7 +869,8 @@ gdk_fb_window_move_resize (GdkWindow *window, { GdkFBDrawingContext fbdc; - if (gdk_fb_cursor_region_need_hide (region)) + if (gdk_fb_cursor_region_need_hide (old_region) || + gdk_fb_cursor_region_need_hide (new_region)) { gdk_fb_cursor_hide (); handle_cursor = TRUE; @@ -1160,8 +1161,8 @@ gdk_window_set_transient_for (GdkWindow *window, g_return_if_fail (parent != NULL); g_return_if_fail (GDK_IS_WINDOW (parent)); - g_return_if_fail (private->parent == gdk_parent_root); - g_return_if_fail (GDK_WINDOW_OBJECT (parent)->parent == gdk_parent_root); + g_return_if_fail ((GdkWindow *)private->parent == gdk_parent_root); + g_return_if_fail ((GdkWindow *)GDK_WINDOW_OBJECT (parent)->parent == gdk_parent_root); root->children = g_list_remove (root->children, window); -- 2.30.2